import request from '@/utils/request'
// 获取轮播图列表
export const homeGetBannerListService = (params = {}) => {
  const { distributionSite = '1' } = params
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}
// 获取新鲜好物
export const homeGetNewGoodsService = () => {
  return request.get('/home/new', {
    params: {
      limit: 4
    }
  })
}

// 获取人气推荐
export const homeGetHotService = () => {
  return request.get('/home/hot')
}

// 获取商品列表
export const homeGetGoodsListService = () => {
  return request.get('/home/goods')
}
